/**
 * @Author: Your name
 * @Date:   2024-03-08 11:53:03
 * @Last Modified by:   Your name
 * @Last Modified time: 2024-03-08 11:53:26
 */
// app.ts 或 server.ts  
import express from 'express';
import apiRoutes from './api.routes'; // 引入路由文件  

const app = express();
const PORT = 3000;

// 挂载 API 路由到 /api 前缀下  
app.use('/api', apiRoutes);

// 启动服务器  
app.listen(PORT, () => {
    console.log(`Server running on port ${PORT}`);
});